]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
dash: Only show separator when there are running apps
authorFlorian Müllner <fmuellner@gnome.org>
Fri, 29 Jan 2021 18:03:07 +0000 (19:03 +0100)
committerMarge Bot <marge-bot@gnome.org>
Sat, 30 Jan 2021 09:44:11 +0000 (09:44 +0000)
The separator is only really needed to distinguish favorite apps
from running apps, the show-apps button is distinct enough already.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1610>

js/ui/dash.js

index 2d329ae91eab4bdf1b752d269f8713f38e32bf9c..16893f9765d2dff8dbfc04b6f02083f41864326b 100644 (file)
@@ -745,7 +745,8 @@ var Dash = GObject.registerClass({
 
         // Update separator
         const nFavorites = Object.keys(favorites).length;
-        if (nFavorites > 0) {
+        const nIcons = children.length - removedActors.length;
+        if (nFavorites > 0 && nFavorites < nIcons) {
             if (!this._separator) {
                 this._separator = new St.Widget({
                     style_class: 'dash-separator',